<template>
    <div>
    <!-- <div class="slide">
        <ul>
            <li>
                <img src='/HTML/WXMP/banner.jpg' alt="">
            </li>
        </ul>
    </div> -->
    <div class="weui-grids">
        <a href="javascript:;" class="weui-grid" v-on:click="gotoTraining">
            <div class="weui-grid__icon" style="height:auto;">
                <svg class="icon red" aria-hidden="true" style='width: 25px;height:25px;'>
                    <use xlink:href="#icon-tushu"></use>
                </svg>
            </div>
            <p class="weui-grid__label">练习</p>
        </a>
        <a href="javascript:;" class="weui-grid" v-on:click="gotoTest">
            <div class="weui-grid__icon" style="height:auto;">
                <svg class="icon blue" aria-hidden="true" style='width: 25px;height:25px;'>
                    <use xlink:href="#icon-shijian"></use>
                </svg>
            </div>
            <p class="weui-grid__label">测试</p>
        </a>
    </div>
    </div>
</template>

<script>
export default {
    data () {
        return {}
    },
    methods: {
        gotoTraining (){
            this.$router.push({ name: 'TrainingClassView'} );
        },
        gotoTest (){
            this.$router.push({ name: 'TestSetClass'} );
        },        
    },
    created  () {
        //console.log(process)
        document.title="主页"  //+process.env.version
    }
}
</script>

<style>

</style>